{include file="header.html"}
<script type="text/javascript">
    $(function () {
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>

<div id="rightTop">
    <ul class="subnav" style="margin:0;">
        <li><span>{$lang.account_log}</span></li>
		<!-- {if !$smarty.get.user_id} -->
        <li><a class="btn1" href="index.php?app=account_log&act=txlog">{$lang.txlog}</a></li>
        <li><a class="btn1" href="index.php?app=account_log&act=setting">{$lang.setting}</a></li>
        <li><a class="btn1" href="index.php?app=account_log&act=statistics">{$lang.statistics}</a></li>
		<!-- {/if} -->
	</ul>
</div>
<!-- {if !$smarty.get.user_id} -->
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input name="app" type="hidden" id="app" value="account_log" />
                <input name="act" type="hidden" id="act" value="index" />
                <select class="querySelect" name="field">
                    {html_options options=$search_options selected=$smarty.get.field}
                </select>
                <input class="queryInput" type="text" name="search_name" value="{$query.search_name|escape}" />
                <select class="querySelect" name="type">
                    <option value="">{$lang.search_status}</option>
                    {html_options options=$account_type_list selected=$smarty.get.type}
                </select>
                {$lang.add_time_from}:<input class="queryInput" type="text" value="{$query.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date" />
                {$lang.add_time_to}:<input class="queryInput" type="text" value="{$query.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />
                {$lang.order_amount_from}:<input class="queryInput2" type="text" value="{$query.order_amount_from}" name="order_amount_from" />
                {$lang.order_amount_to}:<input class="queryInput2" type="text" value="{$query.order_amount_to}" name="order_amount_to" class="pick_date" />
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=account_log">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {include file=page.top.html}
    </div>
</div>
<!-- {/if} -->
<div class="tdare">
    <table width="100%" cellspacing="0">

        <tr class="tatr1">
            <td width="10%">{$lang.user_name}</td>
            <td width="50%">{$lang.log_text}</td>
            <td width="10%">{$lang.money}</td>
            <td width="10%">{$lang.type_name}</td>
            <td width="10%">{$lang.order_sn}</td>
            <td width="10%">{$lang.time}</td>
        </tr>

        <!--{foreach from=$account_log_list item=account_log key=key}-->
        <tr class="tatr2">
            <td><b>{$account_log.user_name}</b></td>
            <td>{$account_log.log_text}</td>
            <td><font color="#FF0000">(<!--{if $account_log.money_flow eq 'outlay'}-->{$lang.expand}<!--{elseif $account_log.money_flow eq 'income'}-->{$lang.income}<!--{else}-->{$lang.system_fail}<!--{/if}--></font>){$account_log.money}</td>
            <td>{$account_log.type_name}</td>
            <td>{$account_log.order_sn}</td>
            <td>{$account_log.add_time|date:y-m-d H:i:s}</td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="8">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $account_log_list}-->
    <div id="dataFuncs">
        <div class="pageLinks">{include file=page.bottom.html}</div>
        <div class="clear"></div>
    </div>
    <!--{/if}-->
</div>
{include file="footer.html"}